//
//  Constant.h
//  ONE
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#ifndef Constant_h
#define Constant_h

//颜色相关:
/** 导航栏标题颜色 */
#define LYLNavigationBarTitleTextColor [UIColor colorWithRed:78 / 255.0 green:92 / 255.0 blue:108 / 255.0 alpha:1]// #4E5C6C
/** 控制器背景颜色 */
#define LYLViewControllerBGColor [UIColor colorWithRed:250 / 255.0 green:252 / 255.0 blue:255 / 255.0 alpha:1]// #FAFCFF
/** 搜索栏文字颜色 */
#define LYLLightGrayTextColor [UIColor colorWithWhite:198 / 255.0 alpha:1]// #C6C6C6
/** 搜索cell文字颜色 */
#define LYLLightBlackTextColor [UIColor colorWithWhite:90 / 255.0 alpha:1]// #5A5A5A
/** 文章标题文字颜色 */
#define LYLDarkBlackTextColor [UIColor colorWithWhite:51 / 255.0 alpha:1]// #333333
/** 编辑页文字颜色 */
#define LYLDarkGrayTextColor [UIColor colorWithWhite:173 / 255.0 alpha:1]// #ADADAD
/** 主题淡青色 */
#define LYLAppThemeColor      [UIColor colorWithRed:142 / 255.0 green:182 / 255.0 blue:230 / 255.0 alpha:1]// #8EB6E6
/** 分隔线颜色 */
#define LYLSeparatorColor [UIColor colorWithWhite:229 / 255.0 alpha:1]// #E5E5E5
/** 分数颜色 */
#define LYLScoreTextColor [UIColor colorWithRed:240 / 255.0 green:89 / 255.0 blue:93 / 255.0 alpha:1]// #F0595D
/** 阴影颜色 */
#define LYLShadowColor [UIColor colorWithWhite:102 / 255.0 alpha:1]// #666666

//字体相关:
#define FontWithSize(size) [UIFont systemFontOfSize:size]
/** 加粗字体大小 */
#define BoldFontWithSize(size) [UIFont boldSystemFontOfSize:size]
/** 分数字体及大小 */
#define ScoreFontWithSize(fontSize) [UIFont fontWithName:@"Bradley Hand" size:fontSize]

#define IsStringEmpty(string) (!string || [@"" isEqualToString:string])
#define IsStringNotEmpty(string) (string && ![@"" isEqualToString:string])

#pragma mark --Path

#define LYLCacheFilesFolderName @"CacheFiles"

// 阅读轮播列表
#define LYLCacheReadCarouselFileName @"LYLCacheReadCarousel"
#define LYLCacheReadCarouselFilePath [NSString stringWithFormat:@"%@/%@/%@", DocumentsDirectory, LYLCacheFilesFolderName, LYLCacheReadCarouselFileName]
// 阅读文章索引列表
#define LYLCacheReadIndexFileName               @"LYLCacheReadIndex"
#define LYLCacheReadIndexFilePath               [NSString stringWithFormat:@"%@/%@/%@", DocumentsDirectory, LYLCacheFilesFolderName, LYLCacheReadIndexFileName]

#endif /* Constant_h */
